package cn.jwcat.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * ip地址
 * </p>
 *
 * @author 橙子味の猫
 * @since 2023-01-10
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@TableName("s_ipaddress")
public class Ipaddress implements Serializable {

	/**
	 * ip的id
	 */
	@TableId(value = "id", type = IdType.AUTO)
	private Integer id;

	/**
	 * 国家
	 */
	@TableField("country")
	private String country;

	/**
	 * 区域
	 */
	@TableField("area")
	private String area;

	/**
	 * 省份
	 */
	@TableField("province")
	private String province;

	/**
	 * 城市
	 */
	@TableField("city")
	private String city;

	/**
	 * 服务供应商
	 */
	@TableField("ISP")
	private String ISP;

	/**
	 * 时间
	 */
	@TableField("date")
	private LocalDateTime date;

	/**
	 * ip
	 */
	@TableField("ip")
	private String ip;


}